package org.iks.common.pojo.support;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.iks.common.aop.OrderFields;
import org.iks.common.aop.serializer.OrderFieldsDeserializer;
import org.iks.common.constant.SortType;

import java.util.Map;

/**
 * Author kzou
 * Date 2023/12/17 19:47
 * Description: 排序
 */
public interface OrderQuerySupportVo {

    /**
     * key 要排序的字段（表字段）； value 排序类型
     * @return map
     */
    @JsonDeserialize(using = OrderFieldsDeserializer.class)
    @OrderFields
    Map<String, SortType> getSortFields();

}
